<?php
require_once "../../libs/ttServer.php";

$tt = new ttServer();

$c = secureGET("c");
$m = secureGET("m");

switch($c)
{
case "spots":
break;

case "spot":
	switch($m)
	{
		case "get":				
			$tmp["id"] = 124;
			$tmp["point"] = "40.015537,116.392829";
			$tmp["name"] = "奥体公园";
			$desc["content"] = "2008 Olympic Games was held here";
			$desc["last_update"] = "2010-6-6 12:23";
			$desc["master"] = "raywill";
			$tmp["description"] = $desc;
			$tmp["star"] = 4.5;
			$c1["content"] = "好地方，湖边傍晚很美丽";
			$c1["user"] = "anoy";
			$c1["por"] = "10";
			$c2["content"] = "夜景很不错，适合拍照，记得带上单反和三脚架";
			$c2["user"] = "Mary";
			$c2["por"] = "1134";
			$tmp["comments"] = array($c1, $c2);
			$tmp["tags"] = array("热闹", "休闲", "大气");
			$data = json_encode($tmp);
			break;
		default:
		break;
	}
break;

default:
break;
}

echo FormatAPIOutput($data);

?>